package code.easy.contentstate.demo

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import code.easy.contentstate.demo.ui.EasyPagingSource
import kotlinx.coroutines.delay

class MainVM : ViewModel() {

    val pagingSource = EasyPagingSource(viewModelScope) {
        delay(1000)
        if (it == 1) return@EasyPagingSource mutableListOf()
        else return@EasyPagingSource mutableListOf()
    }

}